/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.scene.domain;

import com.koron.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel(value = "职业健康档案", description = "职业健康档案实体类")
public class HealthDocumentation extends BaseEntity {

    public HealthDocumentation() {
        super();
    }

    public HealthDocumentation(String userCode, String userName) {
        super.setAddUser(userCode);
        super.setAddUserName(userName);
        super.setAddTime(new Date());
        super.setUpdateUser(userCode);
        super.setUpdateUserName(userName);
        super.setUpdateTime(super.getAddTime());
    }

    @ApiModelProperty(value = "水司code", name = "corpCode", required = true)
    private String corpCode;

    @ApiModelProperty(value = "水司", name = "corpName" )
    private String corpName;

    @ApiModelProperty(value = "负责人code", name = "staffCode" )
    private String staffCode;

    @ApiModelProperty(value = "负责人姓名", name = "staffName", required = true)
    private String staffName;

    @ApiModelProperty(value = "部门code", name = "deptCode" )
    private String deptCode;

    @ApiModelProperty(value = "部门名称", name = "deptName" )
    private String deptName;

    @ApiModelProperty(value = "档案名称", name = "name" )
    private String name;

    @ApiModelProperty(value = "档案类型id", name = "documentationTypeId" )
    private String documentationTypeId;
    @ApiModelProperty(value = "档案类型", name = "documentationType" )
    private String documentationType;

    @ApiModelProperty(value = "附件", name = "attachment" )
    private String attachment;

    @ApiModelProperty(value = "预览附件", name = "attachment" )
    private String previewAttachment;

    public String getPreviewAttachment() {
        return previewAttachment;
    }

    public void setPreviewAttachment(String previewAttachment) {
        this.previewAttachment = previewAttachment;
    }

    public String getCorpCode() {
        return corpCode;
    }

    public void setCorpCode(String corpCode) {
        this.corpCode = corpCode;
    }

    public String getStaffCode() {
        return staffCode;
    }

    public void setStaffCode(String staffCode) {
        this.staffCode = staffCode;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDocumentationTypeId() {
        return documentationTypeId;
    }

    public void setDocumentationTypeId(String documentationTypeId) {
        this.documentationTypeId = documentationTypeId;
    }

    public String getAttachment() {
        return attachment;
    }

    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }

    public String getCorpName() {
        return corpName;
    }

    public void setCorpName(String corpName) {
        this.corpName = corpName;
    }

    public String getDocumentationType() {
        return documentationType;
    }

    public void setDocumentationType(String documentationType) {
        this.documentationType = documentationType;
    }

    @Override
    public String toString() {
        return "HealthDocumentation{" +
                "corpCode='" + corpCode + '\'' +
                ", staffCode='" + staffCode + '\'' +
                ", staffName='" + staffName + '\'' +
                ", deptCode='" + deptCode + '\'' +
                ", deptName='" + deptName + '\'' +
                ", name='" + name + '\'' +
                ", documentationTypeId='" + documentationTypeId + '\'' +
                ", attachment='" + attachment + '\'' +
                '}';
    }

}
